package com.wteam.PoJo.DTO;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@AllArgsConstructor
@NoArgsConstructor
@Data
public class Time {

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty( required = false)
    private String CreateBy;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT,select = false)
    @ApiModelProperty( required = false)
    private LocalDateTime CreateTime;

    @TableField(select = false)//不参与查询
    @ApiModelProperty( required = false)
    @TableLogic(value = "2", delval = "1")
    private Boolean DeleteFlag;

    @TableField(fill = FieldFill.INSERT_UPDATE,select = false)
    @ApiModelProperty( required = false)
    private String UpdateBy;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT_UPDATE,select = false)
    @ApiModelProperty( required = false)
    private LocalDateTime UpdateTime;
}
